package com.eupmt.lab3.domain;

import com.eupmt.lab3.domain.ibator.IbatorTipusReparacio;
import static com.eupmt.lab3.utils.Constants.*;

/**
 *
 * @author Edu Sirvent
 */
public class TipusReparacio extends IbatorTipusReparacio implements Cloneable {

    public TipusReparacio() {
        super();
        setIdreparacio(UNDEFINED);
    }

    //Overrides
    @Override
    public boolean equals(Object o) {
        return (o != null) && (o instanceof TipusReparacio) && (getIdreparacio().equals(((TipusReparacio) o).getIdreparacio()));
    }

    @Override
    public int hashCode() {
        int hash = 5;
        return hash;
    }

    @Override
    public String toString() {
        String str = "\n TipusReparacio.\n";
        str += "idreparacio: " + getIdreparacio() + "\n";
        str += "nom: " + getNom() + "\n";
        str += "maxhores: " + getMaxhores() + "\n";
        return str;
    }
}
